#!/usr/bin/env node

//const cp = require('child_process');

//cp.exec('cat ../00.js', (error, out, err) => {
  //if (error) {
    //console.error(err.toString('utf8'))
  //} else {
    //console.log(out.toString('utf8'))
  //}
//})

//cp.exec('cat data.txt | sort | uniq', (error, out, err) => {
  //if (error) {
    //console.error(err.toString('utf8'))
  //} else {
    //console.log(out.toString('utf8'))
  //}
//})

const cp = require('child_process');

let cmd = process.argv[2];

cp.exec(cmd, (err, stdout) => {
    console.log(stdout);
}) 
